package cn.ac.iscas.domain.response.middleplatform;


import java.util.ArrayList;
import java.util.List;

/**
 * 索引
 *
 * @author zhuquanwen
 * @version 1.0
 * @date 2022/5/17 9:38
 * @since jdk11
 */
public class MetaIndex {

    /**
     * 索引名称
     * */
    protected String name;

    /**
     * 索引的字段，可能为联合索引
     * */
    protected List<String> cols = new ArrayList<>();

    /**
     * 索引类型(每种数据库不一样，MYSQL的为NORMAL、UNIQUE、FULLTEXT、SPATIAL)
     * */
    protected String indexType;

    /**
     * 注释
     * */
    protected String comment;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getCols() {
        return cols;
    }

    public void setCols(List<String> cols) {
        this.cols = cols;
    }

    public String getIndexType() {
        return indexType;
    }

    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
